package com.zhoutao123.hephaestus.controller;

import com.zhoutao123.hephaestus.object.bussiness.VMenu;
import com.zhoutao123.hephaestus.service.MenuService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping(value = "/menu")
@Api(tags = "菜单接口")
public class MenuController {

  @Autowired MenuService menuService;

  @GetMapping
  @ApiOperation(value = "增加指定菜单")
  public List<VMenu> getByList() {
    return menuService.getList();
  }
}
